import request from "@/utils/request";

// export const QueryPageApi=(data)=>request.get('/warehouse/page',data)
export const QueryPageApi = (params) => request({
  url: '/warehouse/page',
  method: 'GET',
  params: {  // 修正为使用params
    page: params.pageNum || 1,
    pageSize: params.pageSize || 10,
    name: params.name,
    cityName: params.cityName,
    personChargeName: params.PersonChargeName
  }
})
export const AddDataApi=(data)=>request.post('/warehouse/add',data)

export const DeleteApi = (ids) => request.delete(`/warehouse/${ids}`)

export const UpdateApi=(data)=>request.put(`/warehouse/upbydate`,data)